import React, { Component } from 'react'

export default class newsdetail extends Component {
  componentDidMount () {
    const search = this.props.location.search
    const searchParams = new URLSearchParams(search)
    const id = searchParams.get('id')
    const name = searchParams.get('name')
    console.log('--id--name--', id, name)
  }
  render () {
    return <div>newsdetail</div>
  }
}
